package OOday01;

public class car {
    String brand;
    String color;
    double price;
    car(){
    }
    car(String brand,String color,double price){
        this.brand=brand;
        this.color=color;
        this.price=price;
    }

    public static void main(String[] args) {
        car car=new car("奥迪","黑",50.99);
        car.start();
        car.run();
        car.stop();

    }
    void start(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"万块钱的车启动了");
    }
    void run(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"万块钱的车开始跑了...");
    }
    void stop(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"万块钱的车停止了");
    }
}
